package com.fc.advbox.service;

import com.fc.advbox.dto.investor.InvestorAcctDto;
import com.fc.advbox.entity.InvestorAcctEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * IInvestorAcctService
 *
 * @author Gary.Jiang
 * @date 2018/6/26.16:53
 */
public interface IInvestorAcctService extends BaseService<InvestorAcctEntity>{

    BigDecimal queryTotalProfit(Map<String, Object> params);

    List<InvestorAcctEntity> queryInvestorAcctByUserId(Long userId);

    InvestorAcctEntity queryInvestorAcctByUserIdAndAcctId(Long userId, Long acctId);

    InvestorAcctDto queryInvestorProfitByUserId(Long userId);

    List<InvestorAcctEntity> queryLimit(Integer offset, Integer num);

    void increase(Long userId, double amt);
}
